package com.markus.code.Thread;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * Author:markusZhang
 * Date:Create in 2020/8/12 11:44
 * todo: 多线程测试: 循环打印abc
 */
public class TestDemo {
    public static void main(String[] args) {
        A a = new A();
    }
}

class A {
    ReentrantLock lock = new ReentrantLock();
    public void run(){
        try{
            lock.lock();
            //执行业务
        }finally {
            lock.unlock();
        }
    }
}